/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package launchPoints;

/**
 *
 * @author hubert
 */
public class processTestArticles {
    public static void main(String[] args){
        parserCrawler.wikiCrawler wCrawl = new parserCrawler.wikiCrawler();
        wCrawl.setAreLinkArticlesCancerArticles(false);
        reportingClasses.reportingObject rptr = new reportingClasses.bodyTextWriter("/home/hubert/hadoopStuff/sampleCodeRun/input/testArticle1", "/home/hubert/hadoopStuff/sampleCodeRun/input/testArticle1");
        wCrawl.setReporter(rptr);
        String targetUrl = "http://www.nlm.nih.gov/medlineplus/ency/article/002918.htm";
        try{
            wCrawl.setReporter(rptr);
            wCrawl.crawl(targetUrl, false, 0);
        }catch(exceptions.notExpectedPageTypeException e){
            e.printStackTrace();
        }
        
    }
    
}
